import request from '@/utils/request';

export function listPdf(query) {
  return request({
    url: '/system/pdf/list',
    method: 'get',
    params: query
  });
}

export function getPdf(id) {
  return request({
    url: '/system/pdf/' + id,
    method: 'get'
  });
}

export function addPdf(data) {
  return request({
    url: '/system/pdf',
    method: 'post',
    data: data
  });
}

export function updatePdf(data) {
  return request({
    url: '/system/pdf',
    method: 'put',
    data: data
  });
}

export function delPdf(ids) {
  return request({
    url: '/system/pdf/' + ids,
    method: 'delete'
  });
}
